package com.kfyang.manualgear.generator.impl.hibernate;

import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.FieldSpec;

import javax.lang.model.element.Modifier;

public interface Constants {
    String ENTITY_MANAGER = "entityManager";

    ClassName ENTITY_MANAGER_CLASS = ClassName.get("jakarta.persistence", "EntityManager");
    ClassName AUTOWIRED_CLASS = ClassName.get("org.springframework.beans.factory.annotation", "Autowired");

    FieldSpec fieldSpec = FieldSpec.builder(ENTITY_MANAGER_CLASS, ENTITY_MANAGER, Modifier.PRIVATE)
        .addAnnotation(AUTOWIRED_CLASS)
        .build();
}
